package com.example.demo.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.demo.Bean.Report;
import com.example.demo.Mapper.ReportMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ReportService {

    @Autowired
    ReportMapper reportMapper;

    public List<Report> selectList(QueryWrapper<Report> queryWrapper) throws Exception{
        return reportMapper.selectList(queryWrapper);
    }

    public List<Report> getList(List<String> studentUids) throws Exception{
        List<Report> reportList = null;
        reportList = reportMapper.selectList(new QueryWrapper<Report>().in("student_uid",studentUids));
        return reportList;
    }
}
